<template>
    <div>
        <share-json-form
            ref="setterFormRef"
            :setterFormValue="LIST"
            :componentWidth="'400px'"
        ></share-json-form>
        <share-button :btnText="'确定'" :onClick="onSubmit"/>
    </div>
</template>

<script>
import { ShareButton,ShareJsonForm } from "../../packages";
const LIST =function(){
    return [
        {
            checkLabel: '报警前后视频录制时间',
            component:"CheckboxInput",
            childComponent:"Input",
            name:"kkkkkkkkk",
            unit:"kwh",
            type: "number",
            min:2,
            max:20
        }
    ]
}
export default {
    name: "CheckboxInput",
    components: {
        ShareJsonForm,
        ShareButton
    },
    data() {
        return {
            checkboxValue: { check: false, input: "" }
        }
    },
    computed: {
        LIST
    },
    methods: {
        onSubmit() {
            this.$refs.setterFormRef.getValues().then(values=>{
                console.log("-----------",values)
            });
            
        }
    }
}
</script>

<style></style>